/**
 * @developer：MR·Feng
 * 业务请求方法管理
 */

import Ajax from './baseAjax.js';
import base from './baseUrl.js';

export default {
    getActivity: (params) => Ajax.get(base.Activity, params),
    getCode: (params) => Ajax.get(base.GetCode, params),
    wxAuth: (params) => Ajax.get(base.WxAuth + params),
    activityPay: (params) => Ajax.get(base.ActivityPay, params),

    addBusinessContact: (data) => Ajax.post(base.AddBusinessContact, data),
    addCars: (data) => Ajax.post(base.AddCars, data),

    // 优惠券
    listCoupon: (params) => Ajax.get(base.listCoupon, params),
    listCard: (params) => Ajax.get(base.listCard, params),
    takeCard: (params) => Ajax.get(base.takeCard, params),

    // 订单
    createOrder: (data) => Ajax.post(base.createOrder, data),
    getOrderStatus: (params) => Ajax.get(base.getOrderStatus, params),

    // 门店
    storeLogin: (data) => Ajax.post(base.storeLogin, data),
    verificationCouponCard: (params) => Ajax.get(base.verificationCouponCard, params),
    getCouponCodeStatus: (params) => Ajax.get(base.getCouponCodeStatus + params),

    // 分享
    getJsapiTicket: (params) => Ajax.get(base.getJsapiTicket, params),
};
